import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class Show {
    private String showId;
    private Movie movie;
    private Hall hall;
    private LocalDateTime time;
    private double price;
    private List<Ticket> tickets = new ArrayList<>();

    public Show(String showId, Movie movie, Hall hall, LocalDateTime time, double price) {
        this.showId = showId;
        this.movie = movie;
        this.hall = hall;
        this.time = time;
        this.price = price;
    }

    public boolean isModifiable() {
        return tickets.isEmpty();
    }

    public String getShowId() { return showId; }
    public Movie getMovie() { return movie; }
    public Hall getHall() { return hall; }
    public LocalDateTime getTime() { return time; }
    public double getPrice() { return price; }
    public List<Ticket> getTickets() { return tickets; }
}